package com.imooc.luckymoney.exception;

import com.imooc.luckymoney.enums.ResultEnum;

public class LuckymoneyException extends RuntimeException{

    private int code;

    public LuckymoneyException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.setCode(resultEnum.getCode());
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
